<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@taglib  uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<metaname="viewport"content="width=device-width, initial-scale=1.0">
<title>Insert title here</title>
<link rel="stylesheet" type="text/css" href="/resource/css/bootstrap.min.css" />
<script type="text/javascript" src="/resource/js/jquery-3.2.1.js"></script>
<script type="text/javascript" src="/resource/js/bootstrap.min.js"></script>
</head>
<body>
	<a href="add.jsp">新增</a>
	<form action="select">
		姓名:<input type="text" name="oname" value="${vo.oname}">
		手机:<input type="text" name="phone" value="${vo.phone}">
		类型:<input type="text" name="tname" value="${vo.tname}">
		房价:<input type="text" name="p1" value="${vo.p1}">
		至
		<input type="text" name="p2" value="${vo.p2}">
		预定日期:
		<input type="Date" name="d1" value="${vo.d1}">
		至
		<input type="Date" name="d2" value="${vo.d2}">
		<input type="submit" value="查询">
	<table class="table">
  <thead>
    <tr>
      <th scope="col">预定日期</th>
      <th scope="col">姓名</th>
      <th scope="col">手机</th>
      <th scope="col">房型</th>
      <th scope="col">房价</th>
      <th scope="col">备注</th>
    
    </tr>
  </thead>
  <tbody>
   	<c:forEach items="${info.list}" var="o">
   	   <tr>
      <td>
      	<fmt:formatDate value="${o.dates}" pattern="yyyy-MM-dd"/>
      </td>
      <td>${o.oname}</td>
      <td>${o.phone}</td>
      <td>${o.tname}</td>
      <td>${o.tprice}</td>
      <td>${o.content}</td>
       </tr>
   	</c:forEach>
   	<tr>
   		<td>
   			<jsp:include page="/WEB-INF/views/common/pages.jsp"></jsp:include>
   		</td>
   	</tr>
  </tbody>
</table>
</form>
<script type="text/javascript">
	function goPage(pageNum,tname){
		location="/select?pageNum="+pageNum;
	} 
</script>
</body>
</html>